﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Messaging
{
    internal class MessageManager
    {
        /// <summary>
        /// 配置信息实体
        /// </summary>
        public static readonly MessageSection Instance = GetSection();

        private static MessageSection GetSection()
        {
            var config = ConfigurationManager.GetSection("MessageSection") as MessageSection
                 ?? new MessageSection();
            return config;
        }
    }
}
